package com.cn.service.GoodsService;

import com.cn.Mapper.goodsMapper.GoodsHotsMapper;
import com.cn.util.SqlsesstionUtil;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Service;

/**
 * @ClassName HotsService
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/18 17:25
 * @Version 1.0
 */
@Service
public class HotsService {
    public void updateHotsByCart(){
        SqlSession sqlSession= SqlsesstionUtil.getSqlSession();
        GoodsHotsMapper goodsHotsMapper =sqlSession.getMapper(GoodsHotsMapper.class);
        goodsHotsMapper.updateGoodsHotByCart();
    }
}
